<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

//$router->group(['middleware' => 'api_sign'], function () use ($router) {
$router->group([], function () use ($router) {
    $router->post('trade/create', 'TradeController@from');      //创建存入报价
    $router->post('trade/out', 'TradeController@out');          //创建取回报价
    $router->get('LAN/checkTradeurl', 'TradeController@checkTradeUrl');      //检测交易链接
    $router->post('LAN/checkTradeurl', 'TradeController@checkTradeUrl');      //检测交易链接
    $router->get('check/from', 'TradeController@checkFromTradeStatus');
    $router->get('check/out', 'TradeController@checkOutTradeStatus');
});

$router->group(['middleware' => 'api_sign'], function () use ($router) {
//$router->group([], function () use ($router) {
    $router->get('userwalletcode/create', 'WalletcodeController@createUserWalletcode'); //创建steam钱包充值
    $router->post('userwalletcode/create', 'WalletcodeController@createUserWalletcode'); //创建steam钱包充值
    $router->get('LAN/checkWalletcode', 'WalletcodeController@checkWalletcode');      //检测steam钱包充值码
    $router->post('LAN/checkWalletcode', 'WalletcodeController@checkWalletcode');      //检测steam钱包充值码
    $router->get('check/checkUserWalletcodeStatus', 'WalletcodeController@checkUserWalletcodeStatus');      //检测steam钱包充值状态
    $router->post('check/checkUserWalletcodeStatus', 'WalletcodeController@checkUserWalletcodeStatus');      //检测steam钱包充值状态
});